#ifndef _MES_KTU_PROCESSING_1_MODEL_H
#define _MES_KTU_PROCESSING_1_MODEL_H
#include "atomic.h"

class MES_KTU_processing_1_model : public Atomic
{
public:
	MES_KTU_processing_1_model( const string & name = "MES_KTU_processing_1_model" );
	inline string className() const
	{
		return "MES_KTU_processing_1_model" ;
	}

protected:
	Model &initFunction();
	Model &externalFunction(const ExternalMessage &);
	Model &internalFunction(const InternalMessage &);
	Model &outputFunction(const InternalMessage &);

private:
	const Port &MES_KTU_1_stream_KER;
	float MES_KTU_1_stream_KER_flowrate;

	Port &MES_KTU_1_stream_JET;
	float MES_KTU_1_stream_JET_flowrate;
	Port &MES_KTU_1_stream_OP;
	float MES_KTU_1_stream_OP_flowrate;

	float MES_KTU_1_stream_JET_yield_val;
	float MES_KTU_1_stream_KER_yield_val;


	Time delay;
	float total_flowrate;
	int count;
};

#endif
